package behavior.state;

/**
 * 测试类
 *
 * @author ykr
 * @date 2022/4/6
 */
public class StateTest {

	public static void main(String[] args) {
		Boss boss = new Boss("哥布林国王", 100.0, 20.0);
		System.out.println(boss.getName() + "出现了，血量" + boss.getLife() + ",防御力" + boss.getDef());
		new DefendState(boss).attack(60.0, 0.0);
		System.out.println("获得装备无尽之刃，攻击变为暴击，暴击倍率225%");
		new CriticalState(boss).attack(60.0, 2.25);
		new DeadState(boss).attack(40.0, 2.25);
	}
}
